package com.yan.yjhTest.webservice.server;

import javax.xml.ws.Endpoint;

import com.yan.yjhTest.webservice.HelloService;
import com.yan.yjhTest.webservice.impl.HelloServiceImpl;

/**
 * 发布WS的server类，直接使用JDK提供的工具
 * @author yan
 *sss
 */
public class Server {
	public static void main(String[] args) {
		String address = "http://localhost:8080/ws/soap/hello";
		HelloService helloService = new HelloServiceImpl();
		
		Endpoint.publish(address, helloService);//发布ws服务
		System.out.println("ws is published!");
	}
}
